package com.grandtech.insurance.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 
 * 大户流转信息表
 */
public class DbDhlzxx implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 用户证件号
     */
    private String idcode;

    /**
     * 转包方姓名
     */
    private String zbfname;

    /**
     * 转包方证件号码
     */
    private String zbfidCode;

    /**
     * 流转面积
     */
    private BigDecimal lzmj;

    /**
     * 备注
     */
    private String bz;

    /**
     * 年份
     */
    private String nf;

    /**
     * 项目编码
     */
    private String xmbm;

    private int flag1=0;

    private int flag2=0;

    public int getFlag1() {
        return flag1;
    }

    public void setFlag1(int flag1) {
        this.flag1 = flag1;
    }

    public int getFlag2() {
        return flag2;
    }

    public void setFlag2(int flag2) {
        this.flag2 = flag2;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getZbfname() {
        return zbfname;
    }

    public void setZbfname(String zbfname) {
        this.zbfname = zbfname;
    }

    public String getZbfidCode() {
        return zbfidCode;
    }

    public void setZbfidCode(String zbfidCode) {
        this.zbfidCode = zbfidCode;
    }

    public BigDecimal getLzmj() {
        return lzmj;
    }

    public void setLzmj(BigDecimal lzmj) {
        this.lzmj = lzmj;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getNf() {
        return nf;
    }

    public void setNf(String nf) {
        this.nf = nf;
    }

    public String getXmbm() {
        return xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbDhlzxx other = (DbDhlzxx) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdcode() == null ? other.getIdcode() == null : this.getIdcode().equals(other.getIdcode()))
            && (this.getZbfname() == null ? other.getZbfname() == null : this.getZbfname().equals(other.getZbfname()))
            && (this.getZbfidCode() == null ? other.getZbfidCode() == null : this.getZbfidCode().equals(other.getZbfidCode()))
            && (this.getLzmj() == null ? other.getLzmj() == null : this.getLzmj().equals(other.getLzmj()))
            && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))
            && (this.getNf() == null ? other.getNf() == null : this.getNf().equals(other.getNf()))
            && (this.getXmbm() == null ? other.getXmbm() == null : this.getXmbm().equals(other.getXmbm()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdcode() == null) ? 0 : getIdcode().hashCode());
        result = prime * result + ((getZbfname() == null) ? 0 : getZbfname().hashCode());
        result = prime * result + ((getZbfidCode() == null) ? 0 : getZbfidCode().hashCode());
        result = prime * result + ((getLzmj() == null) ? 0 : getLzmj().hashCode());
        result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
        result = prime * result + ((getNf() == null) ? 0 : getNf().hashCode());
        result = prime * result + ((getXmbm() == null) ? 0 : getXmbm().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", idcode=").append(idcode);
        sb.append(", zbfname=").append(zbfname);
        sb.append(", zbfidCode=").append(zbfidCode);
        sb.append(", lzmj=").append(lzmj);
        sb.append(", bz=").append(bz);
        sb.append(", nf=").append(nf);
        sb.append(", xmbm=").append(xmbm);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}